import React, { Component } from 'react'
import {router} from "umi"
import {connect} from "dva"
import s from './index.less'

@connect(s => ({
  ...s['member-all']
}))
class Page extends Component {
  componentDidMount() {
    // console.log(this.props)
  }
  goToPotential=() => {
    router.push('/potential')
  }
  goToEnterprise=() => {
    router.push('/enterprise')
  }
  goToSingle=() => {
    router.push('/single')
  }
  render() {
    return (
      <div>
        <div className={s['item-box']}>
          <div className={s['item-left']}>
            <p onClick={this.goToPotential}>潜在会员</p>
            <p onClick={this.goToEnterprise}>企业会员</p>
            <p onClick={this.goToSingle}>个人会员</p>
          </div>
          <div className={s['item-right']}>

          </div>
        </div>
      </div>
    )
  }
}

export default Page

